]> dgit.raspbian.org Git - qt6-base.git/commitdiff
Add SH description
authorJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Sun, 20 Sep 2026 14:12:22 +0000 (16:12 +0200)
committerPatrick Franz <deltaone@debian.org>
Sun, 20 Sep 2026 14:12:22 +0000 (16:12 +0200)
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1043225
Reviewed-by: Lisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Upstream processes archs from time to time and tends to disable those that
they do not know wether they are working or not.

SH is working on Debian, so as an intermediate measure re enable it here.

Gbp-Pq: Name Add-SH-detection.patch

src/corelib/global/qprocessordetection.h

index 7dbd38d316036601e0d98c0abe4976a78ac47db0..2e47854dde2ca4edae5072a653993f29ddac254d 100644 (file)
 
     SuperH is bi-endian, use endianness auto-detection implemented below.
 */
-// #elif defined(__sh__)
-// #  define Q_PROCESSOR_SH
-// #  if defined(__sh4a__)
-// #    define Q_PROCESSOR_SH_4A
-// #  endif
-// Q_BYTE_ORDER not defined, use endianness auto-detection
+#elif defined(__sh__)
+#  define Q_PROCESSOR_SH
+#  if defined(__sh4a__)
+#    define Q_PROCESSOR_SH_4A
+#  endif
+#  define Q_BYTE_ORDER Q_LITTLE_ENDIAN
 
 /*
     SPARC family, optional revision: V9